#pragma once


// Forward declaration
class ServerInfo;


/// Represents connection, which sends/receives data in separate thread synchronously (using one socket).
class SyncConnection
{
public:
	/// Starts "socketCount"-th connections and blocks current thread.
	SyncConnection(ServerInfo &info, size_t socketCount);

private:
	/// Entry point for new threads.
	static void start(ServerInfo &info);
};
